<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
<style type="text/css">
dd{
	padding-bottom:10px;
}
body{
	padding:0px;
	margin:0px;
}
div{
	display:block;
	position:static;
	float:left;
	width:100%;
}
th{
text-align:left;
}
</style>
</head>
<body>
<div id="divresult">
<#if list??>
<table width="100%">
	<tr>
		<td>登录名</td>
		<td>登录IP</td>
		<td>登录时间</td>
		<td>登录结果</td>
	</tr>
<#list list as log>
<tr> <#if log.loginresult!=Disloginlog.LOGINRESULT_SUCCESS>style="color:red;"</#if>><td>${log.disuser.name?html}</td><td>${log.ip}</td>
<td>${log.logintime?datetime?string("yyyy-MM-dd HH:mm:ss")}</td>
<td><#if log.loginresult==Disloginlog.LOGINRESULT_SUCCESS>登录成功<#elseif log.loginresult==Disloginlog.LOGINRESULT_ERR_PASSWORD>密码错误<#elseif log.loginresult==Disloginlog.LOGINRESULT_USER_DENIED>员工被禁<#elseif log.loginresult==Disloginlog.LOGINRESULT_COMPANY_DENIED>公司被禁<#elseif log.loginresult==Disloginlog.LOGINRESULT_NOAUDIT>公司未审核或审核拒绝</#if></td></tr>
</#list>
</table>
<#else>
没有该用户的登录日志
</#if>
</div>
</body>
<script type="text/javascript">
(function(){
	window.parent.document.getElementById("resultpage").height=document.getElementById("divresult").clientHeight;
})();
</script>
</html>